package com.my.basic.reflect;

import lombok.ToString;

/**
 * @author: marshal
 * @date: 2022-10-18 14:52
 */
@ToString
public class Student {
    private Integer id;
    public String name;

    public Student() {
    }

    public Student(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    private Student(String name) {
        this.name = name;
    }

    private Integer sum(int a, int b) {
        return a + b;
    }

    public void study(String course) {
        System.out.println("study " + course);
    }

    public static void f1() {
        System.out.println("This is static method f1");
    }
}
